GetFirst Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Returns the first item in the set: the item that would appear first if the set was enumerated. This is also the smallest item in the set.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public T GetFirst()
Visual Basic (Declaration)
Public Function GetFirst As T
Visual C++
public:
T GetFirst ()

Return Value

The first item in the set.

Remarks

GetFirst() takes time O(log N), where N is the number of items in the set.

Exceptions

ExceptionCondition
System..::InvalidOperationExceptionThe set is empty.

See Also